import * as mock from 'mockjs';

mock.Random.extend(
  {
    tagList: ['限时秒杀', '极速退款', '换了包赔', '立减20', '满50减20', '旗舰店', '包运费', '买一送一'],
    tags: function (date) {
      return this.pick(this.tagList)
    }
  }
)

mock.Random.extend(
  {
    avatarList: [
      'https://avatar2.pddpic.com/a/Q0JHcGY2czZ1TnZOd1Z4MW1ydktSc2MxYkc3TGU5cW9Qdz09djA0-1615427969?imageMogr2/thumbnail/100x',
      'https://avatar2.pddpic.com/a/Q0dUREkrT1lpK2lEdFRncW4wc0MyRTU2VnArRm00L0o3dz09djA0-1573816049?imageMogr2/thumbnail/100x',
      'https://avatar2.pddpic.com/a/Q0Q3VUR2d3p1Z2F3UEU2RkxvbjRZclR4N3oycldic1pRUT09djA0-1581993103?imageMogr2/thumbnail/100x',
      'https://avatar2.pddpic.com/a/Q09BUk9uM1pJNFphTjhJZ2hVam12OEVPbE53RDRkMzhXQT09djA0-1599745929?imageMogr2/thumbnail/100x'
    ],
    avatars: function (date) {
      return this.pick(this.avatarList)
    }
  }
)
